package com.freecloud.whispered.auth.service;

import com.freecloud.framework.service.InterfaceBaseService;
import com.freecloud.whispered.auth.entity.SysUserRoleEntity;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * 用户与角色对应关系
 * 
 * @author maomao
 * @email 138383877@qq.com
 */
@Service
public interface SysUserRoleService extends InterfaceBaseService<SysUserRoleEntity,Long> {
	
	void saveOrUpdate(Long userId, List<Long> roleIdList);
	
	/**
	 * 根据用户ID，获取角色ID列表
	 */
	List<Long> queryRoleIdList(Long userId);
}
